package com.linkstec.bookshop.vo;

/**
 * 
 * @ClassName: BookVo 页面展示book的vo
 * @Description:TODO
 * @author: JGQiang
 * @date: 2018年11月23日 上午11:31:27
 */
public class GoodsVo {
	private int bookId;// id

	private String bName;// 名称

	private String author;// 作者

	private String detail;// 描述

	private double grade;// 评分

	private int cgId;// 外键，分类id

	private String image;// 图片地址



	private String cgName;// 类名

	private int goodsId;// 商品id

	private int number;// 上架的数量

	private double price;// 价格

	private int salNum;// 销售量

	private int gState;// 是否可用

	private int ishot;// 是否热门

	public String getbName() {
		return bName;
	}

	public void setbName(String bName) {
		this.bName = bName;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public double getGrade() {
		return grade;
	}

	public void setGrade(double grade) {
		this.grade = grade;
	}

	public int getCgId() {
		return cgId;
	}

	public void setCgId(int cgId) {
		this.cgId = cgId;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}


	public String getCgName() {
		return cgName;
	}

	public void setCgName(String cgName) {
		this.cgName = cgName;
	}

	public int getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	public int getBookId() {
		return bookId;
	}

	public void setBookId(int bookId) {
		this.bookId = bookId;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getSalNum() {
		return salNum;
	}

	public void setSalNum(int salNum) {
		this.salNum = salNum;
	}

	public int getgState() {
		return gState;
	}

	public void setgState(int gState) {
		this.gState = gState;
	}

	public int getIshot() {
		return ishot;
	}

	public void setIshot(int ishot) {
		this.ishot = ishot;
	}

	@Override
	public String toString() {
		return "BookVo [bookId=" + bookId + ", bName=" + bName + ", author=" + author + ", detail=" + detail
				+ ", grade=" + grade + ", cgId=" + cgId + ", image=" + image + ",  cgName=" + cgName
				+ ", goodsId=" + goodsId + ", number=" + number + ", price=" + price + ", salNum=" + salNum
				+ ", gState=" + gState + ", ishot=" + ishot + "]";
	}

}
